package cn.laike.modules.dev.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 订单记录
 * 
 * @author ziye
 * @email 524748907@qq.com
 * @date 2019-02-20 14:51:10
 */
@TableName("dev_order")
@JsonInclude(value=Include.NON_NULL)
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 商户编号
	 */
	private Long uid;
	/**
	 * 酒店编号
	 */
	private Integer hotelId;
	/**
	 * 酒店名称
	 */
	private String hotelName;
	/**
	 * 房型ID
	 */
	private Integer hotelRoomId;
	/**
	 * 房型名称
	 */
	private String hotelRoomName;
	/**
	 * 会员编号
	 */
	private String openid;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 联系方式
	 */
	private String mobile;
	/**
	 * 昵称
	 */
	private String nickname;
	/**
	 * 头像
	 */
	private String avatar;
	/**
	 * 价格
	 */
	private Double totalPrice;
	/**
	 * 实付金额
	 */
	private Double price;
	/**
	 * 抵用金额
	 */
	private Double money;
	/**
	 * 抵用余额
	 */
	private Double balance;		
	/**
	 * 交易号
	 */
	private String tradeNo;
	/**
	 * 订单号
	 */
	private String orderNo;
	/**
	 * 状态
	 */
	private Integer status;
	
	private Integer hotelRoomType;
	/**
	 * 入住时间
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	private Date startDate;
	/**
	 * 离开时间
	 */
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	private Date endDate;
	/**
	 * 房间数量
	 */
	private Integer number;
	/**
	 * 入住天数
	 */
	private Integer days;
	/**
	 * 到店时间
	 */
	private String arriveTime;
	/**
	 * 备注信息
	 */
	private String remark;
	/**
	 * 注册时间
	 */
	private Date createTime;
	
	private Double refundFee;
	private Date refundTime;
	
	private Integer operationId;		//操作人ID
	private String operationName;	// 操作人名称
	private String operationOpenId;// 操作人open_id
	private Date operationTime;    //操作人核销时间
	
	private Integer couponId;
	private String couponName;
	
	private String prepayId;  //微信预付订单号  当用户在小程序内完成过支付行为，可允许开发者向用户在7天内推送有限条数的模板消息（1次支付可下发3条，多次支付下发条数独立，互相不影响）
	private String parentOpenid; //推荐人编号
	private String parentName; //推荐人姓名
	

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：商户编号
	 */
	public void setUid(Long uid) {
		this.uid = uid;
	}
	/**
	 * 获取：商户编号
	 */
	public Long getUid() {
		return uid;
	}
	/**
	 * 设置：酒店编号
	 */
	public void setHotelId(Integer hotelId) {
		this.hotelId = hotelId;
	}
	/**
	 * 获取：酒店编号
	 */
	public Integer getHotelId() {
		return hotelId;
	}
	
	public Integer getDays() {
		return days;
	}
	public void setDays(Integer days) {
		this.days = days;
	}
	/**
	 * 设置：酒店名称
	 */
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}
	/**
	 * 获取：酒店名称
	 */
	public String getHotelName() {
		return hotelName;
	}
	/**
	 * 设置：房型ID
	 */
	public void setHotelRoomId(Integer hotelRoomId) {
		this.hotelRoomId = hotelRoomId;
	}
	/**
	 * 获取：房型ID
	 */
	public Integer getHotelRoomId() {
		return hotelRoomId;
	}
	/**
	 * 设置：房型名称
	 */
	public void setHotelRoomName(String hotelRoomName) {
		this.hotelRoomName = hotelRoomName;
	}
	/**
	 * 获取：房型名称
	 */
	public String getHotelRoomName() {
		return hotelRoomName;
	}
	/**
	 * 设置：会员编号
	 */
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	/**
	 * 获取：会员编号
	 */
	public String getOpenid() {
		return openid;
	}
	/**
	 * 设置：姓名
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：姓名
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：联系方式
	 */
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	/**
	 * 获取：联系方式
	 */
	public String getMobile() {
		return mobile;
	}
	/**
	 * 设置：昵称
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	/**
	 * 获取：昵称
	 */
	public String getNickname() {
		return nickname;
	}
	/**
	 * 设置：头像
	 */
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	/**
	 * 获取：头像
	 */
	public String getAvatar() {
		return avatar;
	}
	/**
	 * 设置：价格
	 */
	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}
	/**
	 * 获取：价格
	 */
	public Double getTotalPrice() {
		return totalPrice;
	}
	/**
	 * 设置：实付金额
	 */
	public void setPrice(Double price) {
		this.price = price;
	}
	/**
	 * 获取：实付金额
	 */
	public Double getPrice() {
		return price;
	}
	/**
	 * 设置：抵用金额
	 */
	public void setMoney(Double money) {
		this.money = money;
	}
	/**
	 * 获取：抵用金额
	 */
	public Double getMoney() {
		return money;
	}
	/**
	 * 设置：交易号
	 */
	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}
	/**
	 * 获取：交易号
	 */
	public String getTradeNo() {
		return tradeNo;
	}
	/**
	 * 设置：订单号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	/**
	 * 获取：订单号
	 */
	public String getOrderNo() {
		return orderNo;
	}
	/**
	 * 设置：状态
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}
	/**
	 * 获取：状态
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * 设置：入住时间
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * 获取：入住时间
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * 设置：离开时间
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	/**
	 * 获取：离开时间
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * 设置：注册时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：注册时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}
	public String getArriveTime() {
		return arriveTime;
	}
	public void setArriveTime(String arriveTime) {
		this.arriveTime = arriveTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Double getBalance() {
		return balance;
	}
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	public Double getRefundFee() {
		return refundFee;
	}
	public void setRefundFee(Double refundFee) {
		this.refundFee = refundFee;
	}
	public Date getRefundTime() {
		return refundTime;
	}
	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}
	public Integer getOperationId() {
		return operationId;
	}
	public void setOperationId(Integer operationId) {
		this.operationId = operationId;
	}
	public String getOperationName() {
		return operationName;
	}
	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}
	public String getOperationOpenId() {
		return operationOpenId;
	}
	public void setOperationOpenId(String operationOpenId) {
		this.operationOpenId = operationOpenId;
	}
	public Date getOperationTime() {
		return operationTime;
	}
	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}
	public Integer getCouponId() {
		return couponId;
	}
	public void setCouponId(Integer couponId) {
		this.couponId = couponId;
	}
	public String getCouponName() {
		return couponName;
	}
	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}
	public Integer getHotelRoomType() {
		return hotelRoomType;
	}
	public void setHotelRoomType(Integer hotelRoomType) {
		this.hotelRoomType = hotelRoomType;
	}
	public String getPrepayId() {
		return prepayId;
	}
	public void setPrepayId(String prepayId) {
		this.prepayId = prepayId;
	}
	
	public String getParentOpenid() {
		return parentOpenid;
	}
	public void setParentOpenid(String parentOpenid) {
		this.parentOpenid = parentOpenid;
	}
	public String getParentName() {
		return parentName;
	}
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	
	
	
	
}
